import { HooksDemos } from "@/lib/@docs/demos/src";
import { Layout } from "@/layout";
import { MDX_DATA } from "@/mdx";

export default Layout(MDX_DATA.useForceUpdate);

## Usage

`use-force-update` returns a function, which when called rerenders the component:

<Demo data={HooksDemos.useForceUpdateDemo} />

## Definition

```tsx
function useForceUpdate(): () => void;
```
